package com.ophiux.auth;

import com.ophiux.common.feign.annotation.EnableOphiuxFeignClients;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;


@EnableDiscoveryClient
@SpringBootApplication
@EnableOphiuxFeignClients
public class AuthApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext context = SpringApplication.run(AuthApplication.class, args);
		Environment evn = context.getBean(Environment.class);
		System.out.println("auth服务启动成功,端口：" + evn.getProperty("server.port"));
		System.out.println("http://127.0.0.1:8200/swagger-ui/index.html");
	}

}
